﻿

namespace com.tdb.foundation
{
    public class UIType {

        public string Path { get; private set; }

        public string Name { get; private set; }
    
        public UIType(string path)
        {
            Path = path;
            Name = path.Substring(path.LastIndexOf('/') + 1);
        }

        public override string ToString()
        {
            return string.Format("path : {0} name : {1}", Path, Name);
        }

        public static readonly UIType CreateRole = new UIType("Lobby/CreateRoleView");
        public static readonly UIType Lobby = new UIType("Lobby/LobbyView");
        public static readonly UIType CreateRoom = new UIType("Lobby/CreateRoomView");
        public static readonly UIType Room = new UIType("Lobby/RoomView");
    }
}



